﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JuCheap.Service.Data
{
    /// <summary>
    /// DatabaseInit
    /// </summary>
    public static class DatabaseInit
    {
        /// <summary>
        /// Init
        /// </summary>
        public static void Init()
        {
            Database.SetInitializer(
                new MigrateDatabaseToLatestVersion<JuCheapDbContext, JuCheapDbMigrationsConfiguration>());
        }
    }
}
